import 'package:hayll_app_village_master/hayll/village_manager/home/village_access_robbit_component/bean/robbit_app_version.dart';
import 'package:json_annotation/json_annotation.dart';
part 'village_access_robbit.g.dart';

@JsonSerializable()
class VillageAccessRobbitListResult {
  VillageAccessRobbitListResult();

  List<VillageAccessRobbitSimpleResult> data;
  int total = 0;

  //不同的类使用不同的mixin即可
  factory VillageAccessRobbitListResult.fromJson(Map<String, dynamic> json) =>
      _$VillageAccessRobbitListResultFromJson(json);
  Map<String, dynamic> toJson() => _$VillageAccessRobbitListResultToJson(this);
}

@JsonSerializable()
class VillageAccessRobbitSimpleResult {
  VillageAccessRobbitSimpleResult();

  String activeStatusDesc;
  String appVersion;
  String deviceTypeName;
  String lastLoginTimeDesc;
  String location;
  String passKey;
  String switchName;
  String switchType;
  String switchTypeDesc;
  String termId;

  int itemId;
  int lastLoginTime;
  int limitsFacedUserCount;
  double luminance;
  double recogniteLevel;
  int status;
  int switchId;
  int unlocktime;
  int villageId;
  double volume;

  bool activeStatus = false;

  int companyId;
  String companyName;
  int isAuthed;
  String linkPhone;
  String linker;

  RobbitAppVersionInfoResult lastAppVersion;
  //不同的类使用不同的mixin即可
  factory VillageAccessRobbitSimpleResult.fromJson(Map<String, dynamic> json) =>
      _$VillageAccessRobbitSimpleResultFromJson(json);
  Map<String, dynamic> toJson() =>
      _$VillageAccessRobbitSimpleResultToJson(this);
}
